#include <stdio.h>
FILE *fp, *gp;
char buf[256];
char *s = "this is a string";


int main(int argc, char *argv[]){
    fp = fopen(argv[1], "r");
    gp = fopen(argv[2], "w");
    fgets(buf, 256, fp);
    fputs(buf, gp);
    fclose(fp);
    fclose(gp);
}